#pragma once
//template<typename T>
//class BiTree;

template<typename T>
class BiNode
{
	//friend class BiTree<T>;
public:
	BiNode(void)
	{

	}
	~BiNode(void)
	{
		
	}
private:
	T data;
	BiNode<T> *rightChild;
	BiNode<T> *leftChild;
public:
	BiNode<T> * &RightChild()
	{
		return rightChild;
	}
	BiNode<T> * &LeftChild()
	{
		return leftChild;
	}
	T &Data()
	{
		return data;
	}
};